package org.example.work2.at.business.feign;

import org.example.work2.at.business.dto.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * 帐户服务
 *
 * @author xh
 * @date 2023/04/03
 */
@FeignClient("at-account-service")
@RequestMapping("/account")
public interface AccountClient {


    /**
     * 更新分数
     *
     * @param accountDto 账户dto
     * @return boolean
     */
    @PutMapping("/scores")
    boolean updateScores (@RequestBody Account accountDto);


    @GetMapping("/findAccountByCode/{accountCode}")
    Account findAccountByCode(@PathVariable("accountCode") String accountCode);

}
